<template>
	<div>
		<el-card class="box-card" style="margin-top:15px">
			<div slot="header" class="clearfix">
				<span style="font-weight: bold">设置</span>
			</div>
			<el-row :gutter="15">
				<el-form label-width="80px">
					<el-col :span="12">
						<el-form-item label="诊断名称">
							<el-input v-model="checkName"  :readonly="true"  size="mini" style="width:150px;"></el-input>
							<el-button type="primary" size="mini" @click="openSelect">选择</el-button>
							<el-button type="primary" size="mini" @click="clearFun">清除</el-button>
						</el-form-item>
					</el-col>
					<el-col :span="12" style="color:#ff0056;line-height:41px;">该药品使用于选择的诊断有不良反应(警示级别：禁忌)</el-col>
				</el-form>
			</el-row>
		</el-card>
	</div>
</template>

<script>
	export default {
		name:"blfySetCard",
		data () {
			return {
				checkName:"",
				submit:{
					disCode:"",
					moduleId:8
				}
			}
		},
		props:{
			zdData:{
				type:Object
			}
		},
		watch:{
			zdData(val){
				this.checkName=val.name;
				this.submit.disCode=val.id
			},
		},
		methods:{
			clearFun(){
				this.checkName="";
				this.submit.disCode="";
			},
			openSelect () {
				this.$emit("selectPop","诊断",this.submit.disCode);
			},
			resetFun(){
				this.checkName="";
				this.submit={
					disCode:"",
					moduleId:8
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.el-card {
		margin-left: 3px;
	}
	.dialogFirstRow>>>.el-input {
		width: 70px;
		margin-right: 10px;
	}
	
	.el-form-item.s_selectbox>>>.el-form-item__content {
		width: 80%;
	}
	
	
	.demo-form-inline>>>.el-form-item {
		margin-bottom: 0px;
	}
	
	.dialogFirstRow>>>label {
		height:41px;
		display:inline-block;
	}
</style>